package OopInterfaceLian;
/**
 *
 */
public class Test {
    public static void main(String[] args) {
        //创建对象
        PingPongSporter pps = new PingPongSporter("张三",20);
        System.out.println(pps.getName()+","+pps.getAge());
        pps.speakEnglish();
        pps.study();

        System.out.println("------------------------------------------");
        PingPongCoach ppc =new PingPongCoach("李四",30);
        System.out.println(ppc.getName()+","+ppc.getAge());
        ppc.teach();
        ppc.speakEnglish();

        System.out.println("------------------------------------------");
        BaskeballSporter bbs = new BaskeballSporter("王二",20);
        System.out.println(bbs.getName()+","+bbs.getAge());
        bbs.study();

        System.out.println("------------------------------------------");
        BaskeballCoach bbc = new BaskeballCoach("麻子",30);
        System.out.println(bbc.getName()+","+bbc.getAge());
        bbc.teach();

    }
}
